<?php
/**
 * This file is part of PHPlaza (http://code.google.com/p/phplaza)
 * This file is licensed under the GNU Lesser General Public License
 *      http://www.gnu.org/licenses/lgpl.html
 *
 * No warranty is given, express or implied. Use at your own risk.
 */

namespace core::services::render::html;
use core::services as services;
use core::components as comp;

class Button extends TextComponent
{
	public function render()
	{
		$this->service->addData('<button type="submit" id="' . $this->component->getId() . '" name="' . $this->component->getId() . '">' . 
			$this->component->getText() .
			'</button>'
		);
	}
}